#ifndef __MYEVENT_H_
#define __MYEVENT_H_

#ifndef _WIN32
#include <semaphore.h>
#include <time.h>
#include <errno.h>
#else
#include <Windows.h>

#endif

class CMyEvent
{
public:
	CMyEvent(void);
	~CMyEvent(void);

	void Set();
	int Wait(unsigned long   dwTimeOut = 3);

private:
#ifdef _WIN32
	HANDLE	m_hEvent;
#else
	sem_t	m_hEvent;
#endif
};
#endif
